package com.yybray.around;

import java.io.*;

/**
 * Created by Bray.ye on 2017/03/20 15:31.
 */
public class ReadFile {

    public static String processFile(BufferedReaderProcessor p) throws IOException {
        InputStream inputStream = ReadFile.class.getResourceAsStream("/txt.txt");
        try (BufferedReader br = new BufferedReader(new InputStreamReader(inputStream))) {
            return p.process(br);
        }
    }

}
